package com.project.forlearning.dao;

import com.project.forlearning.pojo.ReportResource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * 举报表的接口
 */
@Repository
@Mapper
public interface BackReportResourceMapper {

   //添加举报对象
   boolean addReportResource(@Param("resourceId") Integer resourceId, @Param("userId") Integer userId, @Param("reason") String reason, @Param("reportDetails") String reportDetails);

   //删除举报对象
   boolean deleteReportResource(@Param("reportId") Integer reportId);

   //查询所有举报对象
   List<ReportResource> queryReportResource();

   //根据ID查询举报对象
   ReportResource queryReportResourceOne(@Param("reportId") Integer reportId);
}
